package com.qk.service;

import com.qk.commom.PageResult;
import com.qk.entity.Course;

import java.util.List;

public interface CourseService {
    void deleteById(Integer id);

    void addCourse(Course course);

    Course getById(Integer id);

    void update(Course course);

    List<Course> listAll();

    List<Course> listBySubject(Integer subject);

    PageResult<Course> listCourses(String name, Integer subject, Integer target, Integer page, Integer pageSize);
}
